/*=============================================================================

  ANALOG IO INTERFACE MODULE

  FILE: HAIO.h
  
  DESCRIPTION

    Analog IO Flow control module definition

  EXTERNALIZED FUNCTIONS

    
  Copyright (c) DaeSung Engineering Inc. All rights reserved.

=============================================================================*/
/*=============================================================================

                             EDIT HISTORY

  ---------  -------  -------------------------------------------------------
    when       who     what, where, why
  ---------  -------  -------------------------------------------------------
   08/10/03   nso4th   Initial version

=============================================================================*/

#ifndef _HAIO_H_
#define _HAIO_H_

/*=============================================================================
  HEADER INCLUSION
=============================================================================*/
#ifdef _OBASE_LT_

#else
#include <mxBase.h>
#endif

#include <HAIO_map.h>

/*=============================================================================
  HAIO CLASS DEFINITION
=============================================================================*/
class HAIO : public HDev
{
public:
	HAIO();
	~HAIO();

/*---------------------------------------------------------
  OPERATION
---------------------------------------------------------*/
public:
	boolean Init(void);
 	boolean Close(void);

/*---------------------------------------------------------
  APPLICATION DEFINITION
---------------------------------------------------------*/
public:
	void INIT_IO_STATE(void);

/*---------------------------------------------------------
  IO CONTROL
---------------------------------------------------------*/
public:
	boolean AO(int32 ch, double64 val);
	boolean AOget(int32 ch, double64 *val);

/*---------------------------------------------------------
  EVENT_HANDLER
---------------------------------------------------------*/
public:
	virtual dword Event_Handler(dword dwEvent, dword wParam, dword lParam);
protected:
	virtual dword Event_PreProc(dword dwEvent, dword wParam, dword lParam);
};

#endif /* _HAIO_H_ */
/*--- END OF HAIO.H ---*/
